#ifndef UPDATEDIALOG_H
#define UPDATEDIALOG_H

#include <QWidget>
#include <QDialog>
#include <QDebug>

namespace Ui {
class UpdateDialog;
}

class UpdateDialog : public QDialog
{
    Q_OBJECT

public:
    static UpdateDialog* getInstance();

public slots:
    void syncInfoSlot(int type, QString info);
    void exeCompleteSlot();

private slots:
    void on_yes_clicked();

    void on_no_clicked();

private:
    explicit UpdateDialog(QWidget *parent = 0);
    ~UpdateDialog();
    Ui::UpdateDialog *ui;

signals:
    void startWorkSignal();
};

#endif // UPDATEDIALOG_H
